@extends('Layout/adminBase')
@section('css')
<link rel="stylesheet" type="text/css" href="{{asset('/bootstrap/css/bootstrap.min.css')}}">
<style type="text/css">
    tr{
        text-align: center;
    }
    tr th{
         text-align: center;
    }
</style>
@endsection
@section('body')
<div class='container'>

    <table class="table table-condensed table-bordered table-striped">
        <caption>订单</caption>
        <thead>
            <tr>
                <th>序号</th>
                <th>加入时间</th>
                <th>商品图片</th>
                <th>商品名</th>
                <th>商品规格</th>
                <th>商品价格</th>
                <th>单间总金额</th>
                <th>单件积分</th>
                <th>订单状态</th>
                <th>支付状态</th>
                <th>价格</th>
                <th width="30%" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach ($Order_detail as $v)

            <tr>
                <td>{{$v->id}}</td>
                <td>{{date("Y-m-d H:i:s",$v->create_at)}}</td>
                <td><img src="{{$v->goods_pic}}" alt=""></td>
                <td>{{$v->goods_name}}</td>
                <td>{{$v->goods_specification}}</td>
                <td>{{$v->unit_price}}</td>
                <td>{{$v->unit_price}}</td><!--改-->
                <td>{{$v->single_intergral}}</td>
                <td>{{$order_state[$v->order_state]}}</td>
                <td>{{$pay_state[$v->pay_state]}}</td>
                <td>{{$v->item_price}}</td>
                <td>
                    <a class="btn btn-default-sm" href="/admin/DetailController/detail/{{$v->id}}">查看详情</a>
                    <a class="btn btn-default-sm" href="/admin/Administratro/edit/{{$v->id}}">修改</a>
                    <a class="btn btn-default-sm" href="/admin/Administroatr/del/{$v->id}">删除</a>
                </td>
            </tr>
            @endforeach
        </tbody>
    </table>
</div>
@endsection
